﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Inmobiliaria.Exceptions
{

    public class CustomException : Exception
    {
        private int codigoError;

        public CustomException(string message)
            : base(message)
        {

        }
        public CustomException(string message, int codigoError)
            : base(message)
        {
            this.codigoError = codigoError;
        }

        public int CodigoError
        {
            get { return codigoError; }
        }
    }
}
